<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSalesmanAccountTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('salesman_account', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('salesmanid')->comment('地推人员id');
            $table->integer('childid')->comment('子账号id');
            $table->string('childname')->comment('子账号名称');
            $table->string('registermobile')->comment('注册手机');
            $table->integer('registerid')->comment('注册人id');
            $table->string('info')->nullable()->comment('预留字段');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('salesman_account');
    }
}
